package com.androidx.p013lv.mine.model;

import android.content.Context;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.androidx.p013lv.base.http.BaseRes;
import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;
import com.androidx.p013lv.mine.bean.RentalBean;
import java.util.List;

/* renamed from: com.androidx.lv.mine.model.ContactOfficialModel */
public class ContactOfficialModel extends ViewModel {
    private MutableLiveData<BaseRes<List<RentalBean>>> liveData;

    public MutableLiveData<BaseRes<List<RentalBean>>> data() {
        if (this.liveData == null) {
            this.liveData = new MutableLiveData<>();
        }
        return this.liveData;
    }

    public void setLiveData(Context context) {
        HttpUtils.getInsatance().get(UrlManager.getInsatance().adRentalList(), new HttpCallback<BaseRes<List<RentalBean>>>("adRentalList", context) {
            /* class com.androidx.p013lv.mine.model.ContactOfficialModel.C13431 */

            public void onLvSuccess(BaseRes<List<RentalBean>> baseRes) {
                ContactOfficialModel.this.liveData.setValue(baseRes);
            }
        });
    }

    public void cancelHttp() {
        HttpUtils.getInsatance().cancelTag("officialGroup");
    }
}
